package com.feiyuan.core.feignClients;

import com.feiyuan.common.result.R;
import com.feiyuan.core.feignClients.entity.UmsClassify;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 远程调用分类
 */
@FeignClient(value = "service-pms")
public interface AdminClassifyFeignClient {

    /**
     * 查询列表
     * @return
     */
    @GetMapping("/admin/pms/classify/list")
    R list();

    /**
     * 查询上级分类
     * @return
     */
    @GetMapping("/admin/pms/classify/listUpClassify")
    public R listUpClassify();

    /**
     * 保存或者修改
     * @param umsClassify
     * @return
     */
    @PostMapping("/admin/pms/classify/saveOrUpdate")
    public R saveOrUpdate(@RequestBody UmsClassify umsClassify);

    /**
     * 查询详情
     * @param id
     * @return
     */
    @GetMapping("/admin/pms/classify/info/{id}")
    public R info(@PathVariable Long id);
}
